﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OMeunList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.OMeunList" %>

<form id="pagerForm" method="post" action="SysBasic/OMeunList.aspx">
<input type="hidden" name="MenuName" value="<%=MenuName %>" />
<input type="hidden" name="orderField" value="" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="SysBasic/OMeunList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    菜单名称： <input name="MenuName" type="text" value="<%=MenuName %>"  />
                </td>
            </tr>
        </table>
        <div class="subBar">
            <ul>
                <li>
                    <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="SysBasic/OMenuAdd.aspx" target="navTab"  title="添加菜单"><span>添加</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeleteMenu&MenuId={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.修改))
              {%>
            <li><a class="edit" href="SysBasic/OMenuEdit.aspx?menuid={sid_user}" target="navTab" title="修改菜单"><span>修改</span></a></li>
          <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.修改))
              {%>
            <li><a class="edit" href="SysBasic/OMeunList.aspx?action=clear" target="ajaxTodo" title="清缓存"><span>清缓存</span></a></li>
          <%} %>
        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="138">
        <thead>
            <tr  >                
                <th width="80">
                    菜单序号
                </th>
                <th width="120">
                    菜单名称
                </th>
                <th>
                    路径
                </th>
                <th width="150">
                    是否刷新
                </th>
                <th width="80" align="center">
                    上级菜单
                </th>
                <th width="80">
                    排序值
                </th>
                <th width="80">启用</th>
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("MenuId") %>">
				<td><%# Eval("MenuId") %></td>
				<td><%# Eval("MenuName") %></td>
				<td><%# Eval("DWZHref")%></td>
				<td><%# Eval("DWZFlesh")%></td>
				<td><%# Eval("ParMenuId")%></td>
				<td><%# Eval("DispayIndex")%></td>
                <td><%# Eval("IsUsed")%></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
